/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;

/**
 *
 * @author cloud
 */
@WebService(serviceName = "GetCustomer")
@Stateless()
public class GetCustomer {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "accessdb")
    public String accessdb() {
        //TODO write your implementation code here:
        Biblioteca biblio = new Biblioteca();
      //  biblio.accessDB();
        return null;
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "access")
    public String access() {
        //TODO write your implementation code here:
         Biblioteca biblio = new Biblioteca();
         
        return biblio.accessDB();
    }
    
}
